<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <!-- MOTW-DISABLED saved from url=(0014)about:internet -->
    <title>Scripting Reference</title>
    <link rel="StyleSheet" href="css/ScriptingReference.css" type="text/css" media="all" />
    <link rel="StyleSheet" href="css/webworks.css" type="text/css" media="all" />
    <link rel="StyleSheet" href="webworks.css" type="text/css" media="all" />
    <script type="text/javascript" language="JavaScript1.2">
      <!--
        var  WebWorksRootPath = "";
      // -->
    </script>
  </head>
  <body>
    <div style="text-align: left;">
      <table cellspacing="0" summary="">
        <tr>
          <td>
            <a href="ScriptingWithJava.23.3.html"><img src="images/prev.gif" alt="Previous" border="0" /></a>
          </td>
          <td>
            <a href="ScriptingReference.24.2.html"><img src="images/next.gif" alt="Next" border="0" /></a>
          </td>
        </tr>
      </table>
    </div>
    <hr align="left" />
    <blockquote>
      <h2 class="zTitleChapter"><a name="101137">Scripting Reference</a></h2>
      <p class="b_Body"><a name="356166">This chapter provide reference information for the BIRT JavaScript classes. BIRT provides several JavaScript classes in addition to the native JavaScript classes that are a part of Rhino JavaScript. A report developer can access any of the BIRT classes and their properties and functions when writing an expression. The BIRT classes appear in the expression builder’s Category list as BIRT Functions. </a></p>
      <p class="b_Body"><a name="182037">BIRT event handlers written in Java code cannot directly access the BIRT JavaScript classes. It is possible to partially circumvent this restriction, however, by defining a new user property on an element and assigning the value of that property using a JavaScript expression. The JavaScript expression can use any of the BIRT JavaScript objects. Since Java code has access to the value of a user property, Java code can, in this way, access the result of evaluating a JavaScript expression. The primary restriction of this technique is that the expression is evaluated at the time the element is created and is therefore static.</a></p>
      <p class="b_Body"><a name="182326">For more information on writing Java scripts, see </a><a href="UsingScripting.21.1.html#138071" title="Using Scripting in a Report Design">Using&nbsp;Scripting&nbsp;in&nbsp;a Report&nbsp;Design</a>.</p>
    </blockquote>
    <hr align="left" />
    <table align="right" summary="">
      <tr>
        <td class="WebWorks_Company_Name_Bottom">
          <a href="notices.html">(c) Copyright Actuate Corporation 2013</a>
        </td>
      </tr>
    </table>
  </body>
</html>